import http from "@/api/api";

/**
 * 查询分页
 * @param params
 * @returns {Promise}
 */
export const page = (params) => http.post("/schedule/page", params);

/**
 * 保存信息
 * @param params
 * @returns {Promise}
 */
export const save = (params) => http.post("/schedule/save", params);

/**
 * 删除
 * @param scheduleId
 * @returns {Promise}
 */
export const del = (scheduleId) => http.del("/schedule/del", {scheduleId});

/**
 * 导出所有
 */
export default {
  page,
  save,
  del
}
